package cn.usian.controller;

import cn.usian.pojo.User;
import cn.usian.pojo.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer/user")
public class UserController {
    @Autowired
    private UserFeign userFeign;
    @RequestMapping("/findById")
    public User findById(Integer id){
        User user = userFeign.findById(id);
        return user;
    }
}
